package resources;

import java.io.InputStream;

import org.newdawn.slick.Animation;
import org.newdawn.slick.Image;
import org.newdawn.slick.Sound;
import org.newdawn.slick.UnicodeFont;

public interface IResourceManager {
	
	public static enum ResourceType { IMAGE, SOUND, ANIMATION,	TEXT, FONT};
	
	public Animation   getAnimation(int resourceId);
	
	public Image       getImage    (int resourceId);
	
	public UnicodeFont getFont     (int resourceId);
	
	public String 	   getText     (int resourceId);
	
	public Sound 	   getSound    (int resourceId);
	
	
	
	public int getResourceCount();
	
	public int getId();
	
	public Image loadImage(int id, String path, String description) throws ResourceException;
	
	public Sound loadSound(int id, String path) throws ResourceException;
	
	public void  loadResources(InputStream is) throws ResourceException;
	
	
}
